package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.GoodsFocus;
import com.woniuxy.mapper.GoodsFocusMapper;
import com.woniuxy.service.GoodsFocusService;

@Service
public class GoodsFocusServiceImpl implements GoodsFocusService{

	@Autowired
	private GoodsFocusMapper goodsFocusMapper;
	
	@Override
	public List<GoodsFocus> findGoodsFocus() {
		return goodsFocusMapper.findGoodsFocus();
	}

	@Override
	public GoodsFocus findGoodsByGfid(int gfid) {
		return goodsFocusMapper.findGoodsByGfid(gfid);
	}

	@Override
	public int modifyStatusByGfidOne(int gfid) {
		return goodsFocusMapper.modifyStatusByGfidOne(gfid);
	}

	@Override
	public int modifyStatusByGfidZero(int gfid) {
		return goodsFocusMapper.modifyStatusByGfidZero(gfid);
	}

	@Override
	public int deleteDataByGfid(int gfid) {
		return goodsFocusMapper.deleteDataByGfid(gfid);
	}

	@Override
	public List<GoodsFocus> selectStatusByOne(int status) {
		return goodsFocusMapper.selectStatusByOne(status);
	}

}
